// 搜索选项
const filterOption = {
    items: [
        {
            label: "条码/包码",
            type: "input",
            key: 'barcode',
            data: 'barcode',
            method: "input",
            placeholder: "",
            value: undefined
        },
        {
            label: "来源单号",
            type: "input",
            key: 'sourceId',
            data: "sourceId",
            method: "input",
            placeholder: "",
            value: undefined
        },
        {
            label: '责任归属',
            type: "dropdown",
            key: 'duty',
            data: [
                {
                    label: "戴瑞珠宝",
                    value: "戴瑞珠宝"
                },
                {
                    label: "供应商",
                    value: "供应商"
                }
            ],
            method: "dropdown",
            placeholder: '请选择',
            value: undefined
        },
        {
            label: "定制编码",
            type: "input",
            key: 'customCode',
            data: "customCode",
            method: "input",
            placeholder: "",
            value: undefined
        },
        {
            label: "质检人",
            type: "dropdown",
            key: "qualityController",
            data: [
                {
                    label: "a",
                    value: "1"
                },
                {
                    label: "b",
                    value: "2"
                }
            ],
            placeholder: '请选择',
            value: undefined
        },
        {
            label: "质检状态",
            type: "dropdown",
            key: 'status',
            data: [
                
            ],
            placeholder: '请选择',
            value: undefined
        },
        {
            label: "质检日期",
            type: "datetimerange",
            key: 'qualityTime',
            data: "qualityTime",
            placeholder: '请选择',
            value: undefined
        }
    ],
    btnGroup: [
        {
            label: "查询",
            type: "search"
        },
        {
            label: "清空",
            type: "clear"
        }
    ],
    close: false
}
// 质检记录列表项
const qualityRecordItems = [
    {
        prop: "sapSupplierInfo",
        label: "供应商",
        width: "161"
    },
    {
        prop: "barcode",
        label: "条码",
        width: "161"
    },
    {
        prop: "description",
        label: "描述",
        width: "175"
    },
    {
        prop: "status",
        label: "质检状态",
        width: "175"
    },
    {
        prop: "reason",
        label: "不合格原因",
        width: "203"
    },
    {
        prop: "qualityController",
        label: "质检人",
        width: "188"
    },
    {
        prop: "qualityTime",
        label: "质检时间",
        width: "188"
    },
    {
        prop: "duty",
        label: "责任归属",
        width: "188"
    },
    {
        prop: "customCode",
        label: "定制编码",
        width: "188"
    },
    {
        prop: "sourceId",
        label: "来源单号",
        width: "188"
    }
]
// 关联的订单
const assoicateBills = [
    {
        prop: "bednr",
        label: "是否解绑",
        width: "120"
    },
    {
        prop: "bednr",
        label: "绑定/解绑时间",
        width: "120"
    },
    {
        prop: "bednr",
        label: "单号",
        width: "120"
    },
    {
        prop: "bednr",
        label: "单据类型",
        width: "120"
    },
    {
        prop: "bednr",
        label: "定制编号",
        width: "120"
    },
    {
        prop: "bednr",
        label: "交货方式",
        width: "120"
    },
    {
        prop: "bednr",
        label: "发货店铺",
        width: "120"
    },
    {
        prop: "bednr",
        label: "供应商",
        width: "120"
    },
    {
        prop: "bednr",
        label: "SKU",
        width: "120"
    },
    {
        prop: "bednr",
        label: "品类",
        width: "120"
    },
    {
        prop: "bednr",
        label: "刻字",
        width: "120"
    },
    {
        prop: "bednr",
        label: "描述(钻石信息顺序:颜色-净度-切工-抛光-对",
        width: "220"
    },
    {
        prop: "bednr",
        label: "主数量",
        width: "120"
    },
    {
        prop: "bednr",
        label: "主单位",
        width: "120"
    },
    {
        prop: "bednr",
        label: "辅数量",
        width: "120"
    },
    {
        prop: "bednr",
        label: "辅单位",
        width: "120"
    },
]
// 弹出窗质检记录
const qualityRecordItems2 = [
    {
        prop: "supplierId",
        label: "供应商",
        width: "120"
    },
    {
        prop: "barcode",
        label: "条码",
        width: "120"
    },
    {
        prop: "description",
        label: "描述",
        width: "120"
    },
    {
        prop: "qualityController",
        label: "质检人",
        width: "120"
    },
    {
        prop: "qualityTime",
        label: "质检时间",
        width: "120"
    },
    {
        prop: "status",
        label: "是否合格",
        width: "120"
    },
    {
        prop: "reason",
        label: "不合格原因",
        width: "120"
    },
    {
        prop: "duty",
        label: "责任归属",
        width: "120"
    }
]
// 状态参数 
const statusConfig = [
    {
        color: "brown",
        label: "待质检",
        value: "0",
        count: 0
    },
    {
        color: "green",
        label: "合格",
        value: "1",
        count: 0
    },
    {
        color: "red",
        label: "不合格",
        value: "2",
        count: 0
    },
    {
        color: "orange",
        label: "降级入库",
        value: "3",
        count: 0
    },
]
// 打印退货单提示
const docTipTable = [
    {
        prop: "barcode",
        label: "条码",
        width: "161"
    },
    {
        prop: "dictQcStatus[value]",
        label: "状态",
        width: "161"
    },
]
const printTemplate = [
    {
        prop: "barcode",
        label: "采购单号",
        width: "120"
    },
    {
        prop: "barcode",
        label: "质检结果",
        width: "120"
    },
    {
        prop: "barcode",
        label: "款号",
        width: "120"
    },
    {
        prop: "barcode",
        label: "条码",
        width: "120"
    },
    {
        prop: "barcode",
        label: "手寸",
        width: "120"
    },
    {
        prop: "barcode",
        label: "数量",
        width: "120"
    },
    {
        prop: "barcode",
        label: "总重",
        width: "120"
    },
    {
        prop: "barcode",
        label: "净金重",
        width: "120"
    },
    {
        prop: "barcode",
        label: "材质1",
        width: "120"
    }, 
    {
        prop: "barcode",
        label: "材质2",
        width: "120"
    },
    {
        prop: "barcode",
        label: "重量2",
        width: "120"
    },
    {
        prop: "barcode",
        label: "副石1",
        width: "120"
    },
    {
        prop: "barcode",
        label: "副石2",
        width: "120"
    }
]
export default {
    filterOption,
    qualityRecordItems,
    assoicateBills,
    qualityRecordItems2,
    statusConfig,
    docTipTable,
    printTemplate
}